import java.util.Random;

public class GlobalRandom extends Random {
    private static GlobalRandom singletone = null;

    private GlobalRandom() {
	super();
	singletone = this;
    }

    public static GlobalRandom getRandom() {
	if (singletone == null) {
	    singletone = new GlobalRandom();
	    return singletone;
	} else {
	    return singletone;
	}
    }
}
